FROM wick.zt/python:3.6-alpine

MAINTAINER TONE<wick.zt@gmail.com>


ENV PYPI_MIRROR="https://pypi.doubanio.com/simple"
RUN set -ex \
    && apk add --no-cache gcc g++ python3-dev musl-dev libzmq \
    && pip install -i $PYPI_MIRROR jupyter ipyparallel 2>&1 \
    && rm -rf /root/.cache \
    && apk del gcc g++ python3-dev musl-dev \
    && mkdir -p /notebooks/workspaces

WORKDIR /notebooks

# ENTRYPOINT & EXPOSE
CMD [ "/usr/bin/jupyter", "notebook" ]
